Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attributes: update async_instrument error text for Rust 1.66 #2427

Merged
merged 1 commit into from
Dec 27, 2022

Conversation

hds
Copy link
Contributor

@hds hds commented Dec 27, 2022

Motivation

There is a broken test in tracing-attributes/tests/ui/async_instrument.rs
caused by a change in an error message in rustc.

Solution

The error message suggesting that you remove a semicolon to return a
value (instead of unit) was updated slightly in rust-lang/rust#102650,
which was included in Rust 1.66.0.

This causes one of the tests in tracing-attributes to fail. We fix it by
using the updated error message.

The error message suggesting that you remove a semicolon to return a
value (instead of unit) was updated slightly in rust-lang/rust#102650,
which was included in Rust 1.66.0.

This causes one of the tests in tracing-attributes to fail. We fix it by
using the updated error message.
@hds hds requested review from hawkw, davidbarsky and a team as code owners December 27, 2022 17:37
Copy link
Member

@hawkw hawkw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, this looks good to me!

@hawkw hawkw merged commit 7c39d4f into master Dec 27, 2022
@hawkw hawkw deleted the hds/to-return-this-value branch December 27, 2022 18:38
davidbarsky pushed a commit that referenced this pull request Sep 27, 2023
The error message suggesting that you remove a semicolon to return a
value (instead of unit) was updated slightly in rust-lang/rust#102650,
which was included in Rust 1.66.0.

This causes one of the tests in tracing-attributes to fail. We fix it by
using the updated error message.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants